import request from '@/utils/request'
export default {
    getList:function(params) {
        return request({
            url: '/proof/list',
            method: 'get',
            params
        })
    },
    add:function(params) {
        return request({
            url: '/proof',
            method: 'post',
            params
        })
    },
    update:function(params) {
        return request({
            url: '/proof',
            method: 'PUT',
            params
        })
    },
    remove:function(id) {
        return request({
            url: '/proof',
            method: 'delete',
            params: {
                id: id
            }
        })
    },
  getProofByTaskId:function (taskId) {
      return request({
        url: '/proof/getProofByTaskId',
        method: 'get',
        params: {
          taskId: taskId
        }
      })
  },getProofByOrderId:function (orderId) {
    return request({
      url: '/proof/getProofByOrderId',
      method: 'get',
      params: {
        orderId: orderId
      }
    })
  }
}
